package com.xli.organ.ou.frameou.entity.dto;

import com.xli.dto.validation.group.IGroup;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

@Data
public class OuDTO implements Serializable {

    @Serial
    private static final long serialVersionUID = 6507548256083527690L;

    @Schema(description = "部门名称")
    @NotBlank(message = "ouName必填", groups = {IGroup.add.class, IGroup.update.class})
    private String ouName;

    @Schema(description = "部门编码")
    private String ouCode;

    @Schema(description = "部门简称")
    private String ouShortname;

    @Schema(description = "上级部门")
    private String pid;

    @Schema(description = "电话")
    private String tel;

    @Schema(description = "描述")
    private String description;

    @Schema(description = "排序")
    private int orderNum;
}
